package com.taotao.service;

import com.taotao.mapper.ItemCatMapper;
import com.taotao.pojo.ItemCat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ${DESCRIPTION}
 *
 * @author muxiaoyu
 * @create 2017/06/27 16:17
 **/
@Service
public class ItemCatService {
    @Autowired
    private ItemCatMapper itemCatMapper;

    public List<ItemCat> queryItemList() {
        return itemCatMapper.queryItemCatList();
    }

    public List<ItemCat> queryItemListByParentId(Long parentId) {
        return itemCatMapper.queryItemListByParentId(parentId);
    }
}
